package com.yxhl.zoume.core.car.model;

import com.yxhl.zoume.common.info.BaseAlphabetEntity;

/**
 * 项目名称：Ferrari
 * Created by menggod on 2016/9/2.
 */
public class SelectCityEntity extends BaseAlphabetEntity {

    private String name;
    private String center;

    public SelectCityEntity(String displayContent) {
        super(displayContent);
    }

    public SelectCityEntity(String displayContent, String name, String center) {
        super(displayContent);
        this.name = name;
        this.center = center;
    }


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCenter() {
        return center;
    }

    public void setCenter(String center) {
        this.center = center;
    }

    @Override
    public String toString() {
        return "SelectCityEntity{" + "displayContent='" + displayContent + '\'' +
                "name='" + name + '\'' +
                ", center='" + center + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof SelectCityEntity)) return false;

        SelectCityEntity that = (SelectCityEntity) o;

        return getDisplayContent().equals(that.getDisplayContent());

    }

    @Override
    public int hashCode() {
        return getDisplayContent().hashCode() * 13;
    }
}
